package com.ctshk.rpc.order.airexpress.req;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author 胡广
 * @since 2021/3/31
 */
@Data
public class ListWrapper<E> {

    @NotEmpty
    @Valid
    private List<E> list;

    public ListWrapper() {
        list = new ArrayList<>();
    }

    public ListWrapper(List<E> list) {
        this.list = list;
    }
}